package stage1.operation.module4.chat;

import java.io.IOException;
import java.net.Socket;

/**
 * 客户端2
 */
public class ChatClient1 {
    private static Socket socket;

    public static void main(String[] args) {
        try {
            socket = new Socket("127.0.0.1", 8898);
            System.out.println("连接主机成功！ ");
            new Thread(new ReceiveClientThreat(socket)).start();
            new Thread(new SendClientThreat(socket)).start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
